package stool.observerpattern.part1;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/7
 */
public class StockObserver extends Observer{

    public StockObserver(String name, Subject subject) {
        super(name, subject);
    }

    @Override
    public void update() {
        System.out.println(super.getName() + super.getSubject().getAction());
    }

}
